// 用户相关路由都放在这里
const Layout = () => import('../view/layout/Layout.vue')

export const configmapRoutes = 
    {
        path: "/configmap",
        component: Layout,
        redirect: "/configmap/list",
        children: [
            {
                path: 'list',
                component: ()=> import('../view/configmap/List.vue')
            },
            {
              path: 'create',
              component: ()=> import('../view/configmap/Create.vue')
             },
            {
              path: 'edit',
              component: ()=> import('../view/configmap/Edit.vue')
            }
        ]
    }

export const secretRoutes = 
{
    path: "/secret",
    component: Layout,
    redirect: "/secret/list",
    children: [
        {
            path: 'list',
            component: ()=> import('../view/secret/List.vue')
        },
        {
            path: 'create',
            component: ()=> import('../view/secret/Create.vue')
            },
        {
            path: 'edit',
            component: ()=> import('../view/secret/Edit.vue')
        }
    ]
}